package domain.searchEngine;

import domain.message.Post ;
import domain.user.Login ;

/**
 * The Class IndexAgent.
 */
public interface IndexAgent
{

	/**
	 * adds new login to the data structure of the index.
	 * @param login login to add.
	 */
	public void addNewLoginToIndex(Login login) ;

	/**
	 * Adds the new post info to the data structures of index.
	 * separates the message into words and updates the  data structures of index accordingly.
	 * @param post the post
	 * @param userName the user name of the author of the message
	 *
	 */
	public void addNewPostToIndex(Post post,String userName);

	/**
	 * removes a post info from the data structures of index
	 * @param post the post to remove
	 * @param userName the writer of this post
	 */
	public void removePostFromIndex(Post post,String userName);
}
